package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.util.StringUtils;

import java.util.Date;

@Setter@Getter
public class CustomerTransferQueryObject extends QueryObject{

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    //客户名称
    private String customer;
    //操作人员名称
    private String transUser;
    //原市场专员名称
    private String oldSeller;
    //现市场专员名称
    private String newSeller;

    public String getCustomer(){

        return StringUtils.hasLength(customer)? customer:null;
    }
    public String getTransUser(){

        return StringUtils.hasLength(transUser)? transUser:null;
    }
    public String getOldSeller(){

        return StringUtils.hasLength(oldSeller)? oldSeller:null;
    }
    public String getNewSeller(){

        return StringUtils.hasLength(newSeller)? newSeller:null;
    }
}
